import instacne from "../request";
import type { Ref } from "vue";


interface seach {
    createTime?: string | Ref<string>;
    orderSn?: number | Ref<number>;
    orderType?: number | Ref<number>;
    pageNum?: number | Ref<number>;
    pageSize?: number | Ref<number>;
    receiverKeyword?: string | Ref<string>;
    sourceType?: number | Ref<number>;
    status?: number | Ref<number>;
}

interface seachyuesu {
    createTime: string,
    id: number,
    note: string,
    orderSn:string,
    orderType: number,
    sourceType: number,
    status: number,
    totalAmount: number,
}

interface seacglist {
    list: seachyuesu[],
    pageNum: number,
    pageSize: number,
    total: number,
    totalPage: number
}
const orderlist = (data?: seacglist): Promise<seacglist> => {
    return instacne.get("/order/list", {
      params: data,
    });
  };

//   /order/list/

  export { orderlist };
export type { };